home *** CD-ROM | disk | FTP | other *** search
/ Just Call Me Internet / Just Call Me Internet.iso / com / computer / casio_st / prog_fx / oisac2 / l_6620.txt < prev    next >
Text File  |  1994-03-01  |  946b  |  24 lines

  1. 10 MODE8:DIM:GOSUB900:c$=CHR$(5):DEFCHR$(254)="A2A49C92A2":t$="N(æ,åý) a<æ<b"
  2. 20 CLS:PRINTt$;TAB(0);"input new data (Y/N) ?";:a$=INPUT$(1,@)
  3. 25 IFa$<>"Y" ANDa$<>"y" THEN40
  4. 30 s$="x":GOSUB"LIB0:S6020":GOSUB900
  5. 40 f=95:r=sa:IFr THENs=sg:t=sk^2 ELSEs=0:t=0
  6. 45 CLS:PRINTt$;
  7. 50 z=r:s$="n":GOSUB500:r=z
  8. 60 z=s:s$="“":GOSUB500:s=z
  9. 80 z=t:s$="V":GOSUB500:t=z
  10. 90 CLS:PRINT"Confidence level (1-à)[%]";
  11. 95 z=f:s$="1-à":GOSUB500:f=z:IFf<0 ORf>100 THEN95
  12. 97 CLS:PRINT"N(æ,åý)   ";f;"%";TAB(0);".....";
  13. 100 n=r-1:p=(1-f/100)/2:sr=0:GOSUB"LIB0:S6430":GOSUB900:IFsr THEN*
  14. 110 z=s-x*SQR(t/r):GOSUB400:a=z
  15. 120 z=s+x*SQR(t/r):GOSUB400:b=z
  16. 130 PRINTc$;a;"< æ <";b;:a$=INPUT$(1,@):GOTO45
  17. 400 IFz THENz=ROUND(z,LOG(ABSz)-5)
  18. 410 RETURN
  19. 500 LOCATE0,1:PRINTc$;s$;"=";z;"?";:INPUT@10;z:LOCATE0,0:RETURN
  20. 900 ONERRORGOTO910:RETURN
  21. 910 IFERR=1 THENCLS:ONERRORGOTO0
  22. 920 IFERL=500 THENRESUME500
  23. 930 LOCATE0,1:PRINTc$;"not found";:z$=INPUT$(1,@):RESUME20
  24.